package com.fs.time4j.test;

import net.time4j.CalendarUnit;
import net.time4j.PlainDate;
import net.time4j.SystemClock;
import org.junit.Test;

/**
 * @author shuai.fang
 * @date：2017-08-11
 * @description：
 */
public class Demo {

	@Test
	public void testSystemClock() {
		System.out.println(SystemClock.inLocalView());
		System.out.println(SystemClock.inLocalView().today());
		System.out.println(SystemClock.currentMoment());
		System.out.println(SystemClock.INSTANCE.currentTimeInMicros());
		System.out.println(SystemClock.inLocalView().now());
		System.out.println(SystemClock.inLocalView().today().lengthOfMonth());
		System.out.println(SystemClock.inLocalView().today().plus(2, CalendarUnit.DAYS));
		System.out.println(
				SystemClock.inLocalView().today().plus(2, CalendarUnit.MONTHS).with(PlainDate.DAY_OF_MONTH.minimized()));
	}

	@Test
	public void formatYYYYMMDDHHMMSSSSS() {

	}

}
